﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;

using System.Text;
using System.Windows.Forms;

namespace WordAutoGre
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }
        public string table = "";
        private void Form2_KeyDown(object sender, KeyEventArgs e)
        {

            if (e.KeyCode == Keys.Escape)
            {
                this.Hide();
            }
            else if (e.KeyCode == Keys.F8)
            {
                this.Hide();
            }
            //else if (e.KeyCode == Keys.Enter && (e.Control || e.Alt || e.Shift))
            //{
            //    e.SuppressKeyPress = false;
            //    this.Hide(); 
            //}
         }

        private void Form2_Load(object sender, EventArgs e)
        {
            richTextBox1.Focus();
        }

        private void Form2_Shown(object sender, EventArgs e)
        {
            richTextBox1.Focus();
        }


       
    }
}
